package com.hry.store.dao;

import com.hry.store.pojo.ProductColor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductColorMapper {
    int deleteByPrimaryKey(Integer colorId);

    int insert(ProductColor record);

    int insertSelective(ProductColor record);

    ProductColor selectByPrimaryKey(Integer colorId);

    int updateByPrimaryKeySelective(ProductColor record);

    int updateByPrimaryKey(ProductColor record);

    List<ProductColor> getProductColorBySecondCategoryIdAndVersionId(@Param("secondCategoryId") Integer secondCategoryId, @Param("versionId") Integer versionId);

    ProductColor getProductImgs(@Param("secondCategoryId") Integer secondCategoryId, @Param("versionId") Integer versionId, @Param("colorName") String colorName);
}